package com.example.teamtribe.json;

import com.example.teamtribe.database.Request;
import com.example.teamtribe.database.TeamRequest;

public class JsonRequest {

    private Request relationRequest;
    private TeamRequest request;
    private int code;

    public int getCode() {
        return code;
    }

    public TeamRequest getRequest() {
        request.setRealId(request.getId());
        request.setId(0);
        return request;
    }

    public Request getRelationRequest() {
        relationRequest.setRealId(relationRequest.getId());
        relationRequest.setId(0);
        return relationRequest;
    }
}
